<div class="page-title"><?php
print $this->t ( 'catalog title' )?></div>
<div id="category">
	<?php
	$categories = $this->catalog->getNested ();
	$c = 0;
	foreach ( $categories as $category ) {
		?>
	<div
	class="category-row<?php
		if (($c + 1) == count ( $categories ))
			print ' last'?>">
<div class="category-desc"><a
	href="<?php
		print $category->getUrl ()?>"><img class="category-img"
	src="<?php // print $category->getMidleImg() 						?>" /></a><br />
<div class="text-wrapper"><a
	href="<?php
		print $category->getUrl ()?>"><?php
		print $category->title?></a><br />
<span class="category-desc-short"><?php
		print $category->descript?></span></div>
</div>
<div class="narrow"></div>
<div class="sub-categories">
			<?php
		$s = 0;
		$sub_cat = $this->catalog->getNested ( $category );
		foreach ( $sub_cat as $cat ) {
			if ($s % 10 === 0)
				print '<div class="sub-column">';
			?>
				<div class="block-link"><a href="<?php
			print $cat->getUrl ()?>"><?php
			print $cat->title?></a></div>
			<?php
			if (($s % 10 === 9) || (($s + 1) === count ( $sub_cat )))
				print '</div>';
			$s ++;
		}
		?>
			<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
	<?php
		$c ++;
	}
	?>
</div>
